home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BlastDOS
/
[DOS_Application]_BIT_Software_-_BitCom_3.58c_-_Distribution_Disks.zip
/
DIAL.SCP
< prev
next >
Wrap
Text File
|
1990-06-01
|
927b
|
37 lines
{ This SCRIPT procedure allows you to specify up to 9 recid's }
{ to be dialed. Each number will be called successively until }
{ a successful connection has been made. Then, the bell will }
{ be rung and you will be placed in normal connect status. }
@bell = 0
if (@1 = "") exit "Usage: dial recid1 [recid2 ... recid9]";
@a = 1;
:mainloop
@f = ""
if (@a = 1) @f = @1
if (@a = 2) @f = @2
if (@a = 3) @f = @3
if (@a = 4) @f = @4
if (@a = 5) @f = @5
if (@a = 6) @f = @6
if (@a = 7) @f = @7
if (@a = 8) @f = @8
if (@a = 9) @f = @9
if (@f = "") @a = 1; goto :mainloop
@a = expr(@a+1);
select(@f);
docomm;
{ Wait for 30 seconds for a connection }
@i = 1
:subloop
if (@i > 30 ) goto :mainloop
@i = expr(@i+2)
twait(1,"sec"); {2 sec}
if (@Conn=2) goto :mainloop {number is busy}
if (@Conn=1) goto :didit {connected}
goto :subloop
:didit
@bell = 3;
bell;
@bell = 1;